<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字扫光效果</title>
    <style>

.bg { 
    background: rgb(190, 4, 4);
    width: 1000px;
    height: 300px;
    margin: 0 auto;
    padding-top: 100px;
}
 
.slideShine {
    width: 1000px;
    font-family: "Microsoft YaHei";
    font-size: 60px;
    text-align: center;
 
    background: rgb(173, 173, 173) -webkit-linear-gradient(left, #111, rgb(0, 0, 0)) 0 0 no-repeat;
    -webkit-background-size: 80px;
 
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
 
    -webkit-animation: slideShine 10s infinite;
}
 
@-webkit-keyframes slideShine {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}
    </style>
</head>
<body>
    <div class="bg">
    <p class="slideShine">Welcome to xinpureZhu Blog</p>
</div>
</body>
</html>
